package service;

import factory.UserDaoFactory;
import userDao.GetUser;
import userDao.Student;
import userDao.User;

import java.util.List;

public class UserService {
    private GetUser getUser;

    public UserService() {
        this.getUser = UserDaoFactory.getUser();
    }

    public User getUser(User user){
        return getUser.loginUser(user);
    }

    public List<Student> getStudents(){
        return getUser.getStudents();
    }


}
